<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class DMZ_RowIndex</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class DMZ_RowIndex</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">DMZ_RowIndex Class</p>
		<p class="notes">
			Located in <a class="field" href="_extensions---rowindex.php.html">/extensions/rowindex.php</a> (line <span class="field">23</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																								<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$first_only" title="details" class="var-name">$first_only</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																												
												<div class="method-definition">
											<span class="method-result">bool|int</span>
										<a href="#row_index" title="details" class="method-name">row_index</a>
											(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$leave_select</span> = <span class="var-default">array()</span>], [<span class="var-type"><type></span>&nbsp;<span class="var-name">$distinct_on</span> = <span class="var-default">FALSE</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#row_indices" title="details" class="method-name">row_indices</a>
											(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$leave_select</span> = <span class="var-default">array()</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$distinct_on</span> = <span class="var-default">FALSE</span>], <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|array|int</span>&nbsp;<span class="var-name">$id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#_orderlist" title="details" class="method-name">_orderlist</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$order_by</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#_splitselect" title="details" class="method-name">_splitselect</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$select</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#_splitselect_parens" title="details" class="method-name">_splitselect_parens</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$select</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$pos</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$first_only" id="$first_only"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$first_only</span>
			 = <span class="var-default"> FALSE</span>			(line <span class="line-number">25</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodrow_index" id="row_index"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">row_index</span> (line <span class="line-number">37</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Given an already-built query and an object's ID, determine what row  that object has in the query.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns the index of the item, or FALSE if none are found.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool|int</span>
		<span class="method-name">
			row_index
		</span>
					(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$leave_select</span> = <span class="var-default">array()</span>], [<span class="var-type"><type></span>&nbsp;<span class="var-name">$distinct_on</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
				<span class="var-name">$object</span><span class="var-description">: THe DataMapper object.</span>			</li>
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|int</span>
				<span class="var-name">$id</span><span class="var-description">: The ID or object to look for.</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$leave_select</span><span class="var-description">: A list of items to leave in the selection array, overriding the automatic removal.</span>			</li>
					<li>
				<span class="var-type"><type></span>
				<span class="var-name">$distinct_on</span><span class="var-description">: If TRUE, use DISTINCT ON (not all DBs support this)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrow_indices" id="row_indices"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">row_indices</span> (line <span class="line-number">59</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Given an already-built query and an object's ID, determine what row  that object has in the query.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns an array of row indices.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			row_indices
		</span>
					(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$leave_select</span> = <span class="var-default">array()</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$distinct_on</span> = <span class="var-default">FALSE</span>], <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|array|int</span>&nbsp;<span class="var-name">$id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
				<span class="var-name">$object</span><span class="var-description">: THe DataMapper object.</span>			</li>
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a>|array|int</span>
				<span class="var-name">$id</span><span class="var-description">: The ID or object to look for.</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$leave_select</span><span class="var-description">: A list of items to leave in the selection array, overriding the automatic removal.</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$distinct_on</span><span class="var-description">: If TRUE, use DISTINCT ON (not all DBs support this)</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ids</span>			</li>
				</ul>
		
			
	</div>
<a name="method_orderlist" id="_orderlist"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_orderlist</span> (line <span class="line-number">134</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processes the order_by array, and converts it into a list  of non-fully-qualified columns. These might be aliases.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Modified array.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			_orderlist
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$order_by</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$order_by</span><span class="var-description">: Original order_by array</span>			</li>
				</ul>
		
			
	</div>
<a name="method_splitselect" id="_splitselect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_splitselect</span> (line <span class="line-number">165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Splits the select query up into parts.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Individual select components.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			_splitselect
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$select</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$select</span><span class="var-description">: Original select string</span>			</li>
				</ul>
		
			
	</div>
<a name="method_splitselect_parens" id="_splitselect_parens"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_splitselect_parens</span> (line <span class="line-number">195</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Recursively processes parentheses in the select string.</p>
	<ul class="tags">
				<li><span class="field">return:</span> final position after all recursing is complete.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			_splitselect_parens
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$select</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$pos</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$select</span><span class="var-description">: Select string.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$pos</span><span class="var-description">: current location in the string.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 13 Sep 2013 12:32:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>